package com.yingxin.yxerp.module.activiti.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yingxin.yxerp.module.activiti.entity.ActivitiForm;
import com.yingxin.yxerp.module.activiti.vo.req.ActivitiFormQueryVo;
import com.yingxin.yxerp.module.activiti.vo.resp.ActivitiFormRespVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 表单 Mapper 接口
 * @author fanchao
 * @since 2021-10-18
 */

public interface ActivitiFormMapper extends BaseMapper<ActivitiForm> {

    /**
     * 分页查询
     * @param page
     * @param queryObj
     * @return
     */
    IPage<ActivitiFormRespVo> pageVo(Page page, @Param("queryObj") ActivitiFormQueryVo queryObj);

    /**
     * 查询全部
     * @param queryObj
     * @return
     */
    List<ActivitiFormRespVo> listVo(@Param("queryObj") ActivitiFormQueryVo queryObj);

    /**
     * 根据id查询
     * @param id
     * @return
     */
    ActivitiFormRespVo getVo(@Param("id") String id);

}
